```javascript:d:\桌面\小程序\app\my-project\src\router.js
import { createRouter, createWebHistory } from 'vue-router';
import StoreList from './views/StoreList.vue';
import StoreDetail from './views/StoreDetail.vue';
import DishDetail from './views/DishDetail.vue';
import Profile from './views/Profile.vue';
import Review from './views/Review.vue';

const routes = [
{ path: '/', name: 'StoreList', component: () => import('@/views/StoreList.vue') },
{ path: '/store/:id', name: 'StoreDetail', component: () => import('@/views/StoreDetail.vue') },
{ path: '/dish/:id', name: 'DishDetail', component: () => import('@/views/DishDetail.vue') },
{ path: '/profile', name: 'Profile', component: () => import('@/views/Profile.vue') },
{ path: '/review', name: 'Review', component: () => import('@/views/Review.vue') }
  {
    path: '/',
    name: 'StoreList',
    component: StoreList
  },
  {
    path: '/store/:id',
    name: 'StoreDetail',
    component: StoreDetail
  },
  {
    path: '/dish/:id',
    name: 'DishDetail',
    component: DishDetail
  },
  {
    path: '/profile',
    name: 'Profile',
    component: Profile
  },
  {
    path: '/review',
    name: 'Review',
    component: Review
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

 export default router;
```